#ifndef SIM_MARK_H
#define SIM_MARK_H

#include <ellipsegraphicitem.h>

namespace swp
{

class SimMark : public gui::EllipseGraphicItem
{
public:
    enum Type
    {
        Cost,
        Duration
    };

public:
    SimMark(qreal radiusLimit, Type type, const QString& text = "0",
        QGraphicsItem* parent = 0);
    ~SimMark();

    void setText(const QString& text);

private:
    void checkForElide(const QString& text);

private:
    qreal m_radiusLimit;
    QGraphicsSimpleTextItem* m_text;
};

} // namespace swp

#endif
